# !/usr/bin python3
# encoding: utf-8 -*-
# @file     : complains_order_apis.py
# @author   : 沙陌 Matongxue_2
# @Time     : 2024/1/13 15:25
# @Copyright: 北京码同学
from api.base_api import BaseBuyerApi


class AddComplainsApi(BaseBuyerApi):

    # 接口的基本信息，统一封装在init函数中
    def __init__(self,order_sn,sku_id):
        super().__init__()
        self.url = f'{self.host}/trade/order-complains'
        self.method = 'post'
        self.data = {
            "content":"这是投诉内容",
            "order_sn":order_sn,
            "sku_id":sku_id
        }

class AddComplainsCommunicationApi(BaseBuyerApi):

    # 接口的基本信息，统一封装在init函数中
    def __init__(self,id):
        super().__init__()
        self.url = f'{self.host}/trade/order-complains/{id}/communication'
        self.method = 'put'
        self.data = {
            "content":"这是买家对话内容"
        }

class ToArbitrationApi(BaseBuyerApi):

    # 接口的基本信息，统一封装在init函数中
    def __init__(self,id):
        super().__init__()
        self.url = f'{self.host}/trade/order-complains/{id}/to-arbitration'
        self.method = 'put'

